using System;

namespace SeguradoraIA.Framework.Log
{
    public class ExceptionLogData : LogData
    {
        public ExceptionLogData(Exception ex, string mensagemAdicional)
        {
            Message = "Erro";
            if(string.IsNullOrEmpty(mensagemAdicional))
                Information = ex.Message + System.Environment.NewLine + ex.StackTrace;
            else
                Information = ex.Message + System.Environment.NewLine + ex.StackTrace + System.Environment.NewLine + mensagemAdicional;
        }
    }
}